home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d18
/
jockdem4.arc
/
IODEM1.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-04-28
|
1KB
|
43 lines
program IOTTT5_Demo_1;
{IMPORTANT NOTE: Set Options Compile Conditional Defines to IOFull and
select Compile Build.
}
{$V-} {string checking off}
uses CRT,FastTTT5, IOTTT5;
var
Name : string;
Age : byte;
Calories : word;
begin
Name := '';
Age := 0;
Calories := 0;
Clrscr;
WriteAt(25,5,white,black,'Name:');
WriteAT(25,7,white,black,'Age:');
WriteAt(25,9,white,black,'Calories:');
WriteCenter(25,lightred,black,'Press F10 to end input');
{Now the IO specific code}
Create_Fields(3);
Add_Field(1, 3,2,3,2, 36,5);
Add_Field(2, 1,3,1,3, 36,7);
Add_Field(3, 2,1,2,1, 36,9);
String_Field(1, Name, '*************************');
Byte_Field(2, Age,'',0,125);
Word_Field(3, Calories,'####',0,8000);
Process_Input(1);
{it's all over}
Dispose_Fields;
Clrscr;
WriteAT(1,1,white,black,'Run DemoTTT.exe for the main demo program');
WriteAT(1,2,white,black,'TechnoJock''s Turbo Toolkit v5.0');
GotoXY(1,5);
end.